package com.zqh.orderquery.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zqh.myfmmall.entity.Orders;
import com.zqh.myfmmall.vo.OrdersVO;

import java.util.List;
import java.util.Map;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-18 2:18
 */

public interface OrderQueryService extends IService<Orders>{
    Orders getOrderStatus (String orderId);

    /**
     * 功能描述:
     * 分页查询用户特定状态的订单
     *
     * @param userId
     * @param status
     * @param pageSize
     * @param pageNum
     * @return java.util.List<com.zqh.myfmmall.vo.OrdersVO>
     * @author kono曾淇杭哒！
     * @date 2022/1/29 1:40
     */
    List<OrdersVO> pageByStatus(String userId, Integer status, Integer pageSize, Integer pageNum);

    Map<String,Object> orderCounts(String userId);
}
